<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InitUpdate78 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('fudai_activity', function (Blueprint $table) {

            $table->json('multi_buy_discount')->nullable()->comment('连开优惠');

        });

        Schema::table('orders', function (Blueprint $table) {

            $table->integer('multi_buy_money_discount')->unsigned()->default(0)->comment('连开人民币优惠');
            $table->integer('multi_buy_score_discount')->unsigned()->default(0)->comment('连开积分优惠');
            
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
